home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 11 / Cream of the Crop 11-2.iso / extra / helpful.zip / umsdos < prev    next >
Text File  |  1995-08-28  |  22KB  |  839 lines

  1.   UMSDOS HOW-TO
  2.   Jacques Gelinas, jacques@solucorp.qc.ca
  3.   v1.0, 27 August 1995
  4.  
  5.   Umsdos is a linux file system. It provide an alternative to the EXT2
  6.   file-system. Its main goal is to achieve easier coexistence with Ms-
  7.   DOS data by sharing the same partition.  This document explain first
  8.   how to use Umsdos in different configuration, and later explain its
  9.   operation and try to provide some information letting you decide if it
  10.   is a good choice for you (see UMSDOS-WHY-TO at the end).
  11.  
  12.   1.  UMSDOS: Where is it ?
  13.  
  14.  
  15.  
  16.   1.1.  History
  17.  
  18.  
  19.   The Umsdos project was started in 1992 and made available to the net
  20.   in January 1994 as a patch. It was included in the standard kernel
  21.   distribution in July, starting with kernel 1.1.36.
  22.  
  23.   Umsdos was early adopted in the Slackware distribution even before it
  24.   was officially included in the official kernel.
  25.  
  26.   Umsdos was improved starting at kernel 1.1.60. Its performance has
  27.   been dramatically enhanced, especially for writing. Since 1.1.70
  28.   (around this), it is stable again.
  29.  
  30.   A major bug was solve in Linux 1.2.2. This bug was causing some grief
  31.   to users since the beginning (some file were silently renamed, giving
  32.   the sad impression that they were deleted). Beware that Slackware 2.2
  33.   is still shipping release 1.2.1 of the kernel, so has this bug.
  34.  
  35.  
  36.   1.2.  Availability
  37.  
  38.  
  39.   It is available as a patch for kernel 1.0.x. It is built-in for kernel
  40.   1.2. It can be compiled in or load as a module.  Beware that for now,
  41.   if you intend to load umsdos as a module, you must also use the Ms-DOS
  42.   fs as a module. This come from a limitation in the module system (some
  43.   symbols are only export when the drivers is installed as a module).
  44.  
  45.  
  46.   1.3.  Distribution supporting it
  47.  
  48.  
  49.   So far, I think only Slackware does support it. I am surely wrong, so
  50.   please send me info to correct this.
  51.  
  52.  
  53.   1.4.  Home site
  54.  
  55.  
  56.   The home site for Umsdos is sunsite.unc.edu. Look in the directory
  57.   /pub/Linux/system/Filesystems/umsdos.
  58.  
  59.  
  60.   1.5.  Technical documentation
  61.  
  62.   There is quite a lot of documentation about the internal of Umsdos. It
  63.   is available both in HTML and text format at the same location as the
  64.   utilities.
  65.  
  66.  
  67.   As far as I know, the HTML version is not available online on any web
  68.   site. You must down-load it and "UN-tar" it and read it locally.
  69.  
  70.  
  71.   1.6.  Who wrote it
  72.  
  73.  
  74.   Jacques Gelinas jacques@solucorp.qc.ca
  75.  
  76.  
  77.   2.  Umsdos as your root partition
  78.  
  79.  
  80.  
  81.   2.1.  The pseudo-root concept.
  82.  
  83.   With Umsdos, Linux can be installed in a standard DOS partition. Linux
  84.   is then installed as a second (or third) OS in the partition. To avoid
  85.   name collision (there is maybe a bin or tmp directory in the drive C:
  86.   already), Umsdos use a smart trick: The pseudo-root.
  87.  
  88.   All Linux files are installed in a DOS subdirectory called linux,
  89.   generally C: LINUX. The normal Linux/Unix directory structure goes
  90.   there. So you get
  91.  
  92.  
  93.   o
  94.  
  95.      C:\LINUX\BIN
  96.  
  97.  
  98.  
  99.   o
  100.  
  101.      C:\LINUX\ETC
  102.  
  103.  
  104.  
  105.   o
  106.  
  107.      C:\LINUX\LIB
  108.  
  109.  
  110.  
  111.   o
  112.  
  113.      C:\LINUX\ROOT
  114.  
  115.  
  116.  
  117.   o
  118.  
  119.      C:\LINUX\SBIN
  120.  
  121.  
  122.  
  123.   o
  124.  
  125.      C:\LINUX\TMP
  126.  
  127.  
  128.  
  129.   o
  130.  
  131.      C:\LINUX\USR
  132.  
  133.   o
  134.  
  135.      C:\LINUX\VAR
  136.  
  137.  
  138.  
  139.   When the Umsdos boot, it probes for the directory linux and then
  140.   /linux/etc. If it exist, it activates the pseudo-root mode.
  141.  
  142.   Mostly, the pseudo-root mode switch the root of the partition to
  143.   C:\LINUX giving the conventional Unix directory layout
  144.  
  145.  
  146.   o
  147.  
  148.      /bin
  149.  
  150.  
  151.  
  152.   o
  153.  
  154.      /etc
  155.  
  156.  
  157.  
  158.   o
  159.  
  160.      /lib
  161.  
  162.  
  163.  
  164.   o
  165.  
  166.      /root
  167.  
  168.  
  169.  
  170.   o
  171.  
  172.      /sbin
  173.  
  174.  
  175.  
  176.   o
  177.  
  178.      /tmp
  179.  
  180.  
  181.  
  182.   o
  183.  
  184.      /usr
  185.  
  186.  
  187.  
  188.   o
  189.  
  190.      /var
  191.  
  192.  
  193.  
  194.   To this list, it adds a new one called DOS. This one is a virtual
  195.   directory.
  196.  
  197.  
  198.  
  199.   2.2.  Things to know about the pseudo-root
  200.  
  201.  
  202.   o  This mode can only be triggered at boot time. There is no way to
  203.      activate this by a mount command.
  204.  
  205.   o  This mechanism is purely a different view of a normal Umsdos file-
  206.      system. This means that a partition normally used as a root
  207.      partition can be normally mounted. There won't be any pseudo-root
  208.      effect.
  209.  
  210.      For example, if you boot linux with a maintenance floppy and mount
  211.      your normal root partition in /mnt, you will find all your linux
  212.      directory in /mnt/linux/bin, /mnt/linux/etc and so on.
  213.  
  214.  
  215.  
  216.  
  217.   3.  Different topics about the operation of Umsdos
  218.  
  219.  
  220.  
  221.   3.1.  Mount option
  222.  
  223.  
  224.   You can use the same mount option as for the Ms-DOS file system.  The
  225.   option conv= is questionable on a Umsdos system. I suggest to avoid
  226.   it. Mostly the option you may want to look at are
  227.  
  228.  
  229.   o  uid=
  230.  
  231.   o  gid=
  232.  
  233.   o  umask=
  234.  
  235.   Just remember that Umsdos manage non promoted directory the same way
  236.   as the Ms-DOS file system. The option above will apply globally to all
  237.   non promoted directory. uid setup the default owner, gid setup the
  238.   default group and umask setup the default permissions.
  239.  
  240.  
  241.   3.2.  How to set defaults for the root
  242.  
  243.  
  244.   umssetup was created to provide at run time default ownership for the
  245.   root partition. For other Umsdos partition, mount option may be used
  246.   or umssetup. Storing mount option in /etc/fstab is the prefered way
  247.   for non root partition. Here is an example.  Put this in
  248.   /etc/rc.d/rc.S.
  249.  
  250.  
  251.  
  252.                        /sbin/umssetup -u jack -g group -m 0755 /
  253.  
  254.  
  255.  
  256.  
  257.  
  258.  
  259.   3.3.  To swap or not to swap
  260.  
  261.  
  262.   Using a swap file is generally slower than a swap partition.  It is
  263.   however much more flexible. You can setup a swap file in a Umsdos
  264.   partition the same way you do it for any other Linux file systems. For
  265.   example, to setup a 8 megabytes swap file in the root directory:
  266.  
  267.  
  268.  
  269.                        dd if=/dev/zero bs=1024k count=8 of=/swap
  270.                        mkswap /swap 8192
  271.                        sync
  272.                        swapon /swap
  273.  
  274.  
  275.  
  276.  
  277.  
  278.   Once done, you can put the following line in /etc/fstab
  279.  
  280.  
  281.  
  282.                        /swap   swap    swap    default
  283.  
  284.  
  285.  
  286.  
  287.  
  288.   And the swap file will be activated at each boot (There is generally a
  289.   "swapon -a" in /etc/rc.d/rc.S).
  290.  
  291.  
  292.   4.  How to boot a Umsdos system
  293.  
  294.  
  295.  
  296.   4.1.  Loadlin
  297.  
  298.  
  299.   The package lodlin15.tgz available from sunsite.unc.edu in
  300.   /pub/Linux/system/Bootutils. This utility is particularly suited to
  301.   boot a Umsdos system. Generally all you need to do is
  302.  
  303.  
  304.  
  305.                Boot DOS
  306.                C:>loadlinx zimage root=D:
  307.  
  308.  
  309.  
  310.  
  311.  
  312.   where zimage is a normal kernel image (compressed) simply copied
  313.   somewhere in the DOS drive. D: is the DOS drive where you have
  314.   installed Linux.
  315.  
  316.  
  317.   4.2.  From a floppy
  318.  
  319.  
  320.   Booting a Umsdos system from a floppy is not different from booting a
  321.   Ext2 system. You need a kernel zImage file properly initialize to
  322.   locate your root Umsdos partition. This is generally achieved using
  323.   the command rdev. The following sequence will initialize a zImage and
  324.   put it on a floppy.
  325.  
  326.  
  327.  
  328.  
  329.  
  330.  
  331.           rdev zImage /dev/hda1
  332.           rdev -R zImage 0
  333.           dd if=zImage bs=8192 of=/dev/fd0
  334.  
  335.  
  336.  
  337.  
  338.  
  339.   If this looks confusing, just format a boot-able DOS floppy and put
  340.   the following component on it.
  341.  
  342.  
  343.   o  loadlin.exe
  344.  
  345.   o  loadlinx.exe
  346.  
  347.   o  zimage
  348.  
  349.   and setup the autoexec.bat like this
  350.  
  351.  
  352.  
  353.                loadlinx zimage rw root=C:
  354.  
  355.  
  356.  
  357.  
  358.  
  359.  
  360.   4.3.  LILO
  361.  
  362.  
  363.   LILO, the official Linux boot loader can also be used to boot a Umsdos
  364.   system. I have no experience with it though. Since 1.1.60, it should
  365.   work. Please email if you know something.
  366.  
  367.  
  368.   4.4.  How to defragment a Umsdos partition
  369.  
  370.  
  371.   It can be done using any popular DOS tool. There is nothing particular
  372.   about file produced by Umsdos. And Umsdos do not expect anything
  373.   particular (directory layout, directory entry sequence, etc...) from
  374.   the file system under it.
  375.  
  376.   As far as I know, there is no Linux tool to achieve this.
  377.  
  378.  
  379.   4.5.  Advance tricks
  380.  
  381.   Umsdos rely on the --linux-.--- which rely on the DOS directory. Some
  382.   users may want to experiment a bit. The utility udosctl part of the
  383.   umsdos_progs package (containing umssync and umssetup) allows basic
  384.   directory operation (listing, deletion) independently on the
  385.   --linux-.--- and the DOS directory.
  386.  
  387.  
  388.  
  389.   5.  Basic principle
  390.  
  391.  
  392.  
  393.   5.1.  Introduction
  394.  
  395.  
  396.  
  397.   Umsdos map Linux files directly to Ms-DOS files.  This is a one for
  398.   one translation. File content is not manipulated at all. Umsdos only
  399.   works on names. For special files (links and devices for example), it
  400.   introduces special management.
  401.  
  402.   For each directory, there is a file named --linux-.---.
  403.  
  404.  
  405.   5.2.  Umsdos can replace the Ms-DOS file-system.
  406.  
  407.  
  408.   Umsdos can be thought as a general purpose superset of the Ms-DOS file
  409.   system of linux. In fact this capability or flexibility yields much
  410.   confusion about Umsdos. Here is why. Try to mount a newly formatted
  411.   DOS floppy like this.
  412.  
  413.  
  414.  
  415.                mount -t umsdos /dev/fd0 /mnt
  416.  
  417.  
  418.  
  419.  
  420.  
  421.   And do this,
  422.  
  423.  
  424.  
  425.                ls / >/mnt/LONGFILENAME
  426.                ls -l /mnt
  427.  
  428.  
  429.  
  430.  
  431.  
  432.   You will get the following result
  433.  
  434.  
  435.  
  436.                -rwxr-xr-x   1 root     root          302 Apr 14 23:25 longfile
  437.  
  438.  
  439.  
  440.  
  441.  
  442.   So far, it seems that the Umsdos file system does not do much more (in
  443.   fact nothing at all) than the normal Ms-DOS file system of Linux.
  444.  
  445.   ???
  446.  
  447.  
  448.   5.3.  Directory promotion
  449.  
  450.  
  451.   Pretty unimpressive so far. Here is the trick. Unless promoted a DOS
  452.   directory will be managed the same way with Umsdos than the Ms-DOS
  453.   file-system will. Umsdos use a special file in each subdirectory to
  454.   achieve the translation between the extended capabilities (long name,
  455.   ownership, etc...) of Umsdos and the limitation of the DOS file-
  456.   system.  This file is invisible to Umsdos users, but visible when you
  457.   boot DOS. To avoid cluttering the DOS partition with those file
  458.   (--linux-.---) uselessly, the file is now optional. If absent, Umsdos
  459.   behave like Ms-DOS.
  460.  
  461.   When a directory is promoted, any subsequent operation will be done
  462.   with the full semantic normally available to Unix and Linux users. And
  463.   all subdirectory created afterward will be silently promoted.
  464.  
  465.   This feature allows you to logically organize your DOS partition into
  466.   DOS stuff and Linux stuff. It is important to understand that those
  467.   --linux-.--- file do take some place (generally 2k per directory). DOS
  468.   generally use large cluster (as big as 16k for a 500meg partition), so
  469.   avoiding putting --linux-.--- everywhere can save your day.
  470.  
  471.  
  472.   5.4.  How to promote: /sbin/umssync
  473.  
  474.  
  475.   A directory can be promoted any time using /sbin/umssync.  It can be
  476.   used at any time. Promoting a directory do the following operation
  477.  
  478.  
  479.   o  Create a --linux-.---.
  480.  
  481.   o  Establish a one to one relation between the --linux-.--- and the
  482.      current content of the directory.
  483.  
  484.   /sbin/umssync maintain an existing --linux-.--- file.  It does not
  485.   create it from scratch all the time. It simply add missing entries in
  486.   it (Files created during a DOS session).  It will also removed files
  487.   which do not exist anymore in the DOS directory from the --linux-.---.
  488.   umssync gets its name from that. It put --linux-.--- in sync with the
  489.   underlying DOS directory.
  490.  
  491.  
  492.   5.5.  Using /sbin/umssync at boot time
  493.  
  494.   It is a good idea to place a call to /sbin/umssync at the end of your
  495.   /etc/rc.d/rc.S if it's not there. The following command is adequate
  496.   for most system:
  497.  
  498.  
  499.  
  500.                /sbin/umssync -r99 -c -i+ /
  501.  
  502.  
  503.  
  504.  
  505.  
  506.   The -c option prevent umssync from promoting directories. It will only
  507.   update existing --linux-.---.
  508.  
  509.   This command is useful if you access Linux directory during a DOS
  510.   session. Linux has no efficient way to tell that a directory has been
  511.   modified by DOS so Umsdos can't do a umssync operation as needed.
  512.  
  513.  
  514.   5.6.  How to UN-promote
  515.  
  516.  
  517.   Remove the --linux-.--- file using DOS. You will be sorry.
  518.  
  519.  
  520.   5.7.  What about files created during a DOS session ?
  521.  
  522.  
  523.   Unless you use umssync on a directory where files have been added or
  524.   removed by DOS, you will notice some problems:
  525.  
  526.  
  527.   o  It won't crash the system nor it won't cause major problems, only
  528.      annoyance :-)
  529.   o  Files created by DOS.
  530.  
  531.   o  They will be invisible in Linux.
  532.  
  533.   o  When trying to create a file with the same name, you will get an
  534.      error message stating that the file already exist.
  535.  
  536.   o  This creates more confusion that real problem. It does not harm the
  537.      file system.
  538.  
  539.   o  Files deleted by DOS won't cause problem. Umsdos will notice the
  540.      absence at the first access. A message will be output (and
  541.      generally written into /var/adm/syslog).
  542.  
  543.  
  544.   6.  Installation/UN-installation and some tricks
  545.  
  546.   The installation of a Umsdos is not much different from the
  547.   installation of an ordinary (Ext2 based) Linux system.
  548.  
  549.   There are two main differences.
  550.  
  551.  
  552.   6.1.  The pseudo-root /mnt/linux
  553.  
  554.   The normal steps for an installation are
  555.  
  556.  
  557.   1. Setting a partition with fdisk and formatting it.
  558.  
  559.   2. Mounting it as /mnt relative to our installation root disk.
  560.  
  561.   3. Copy all packages into /mnt.
  562.  
  563.   With Umsdos, the step 1 is not required (wasn't it the goal of Umsdos
  564.   not to reformat ?).
  565.  
  566.   It is possible to install a Umsdos system just by copying all packages
  567.   into /mnt. This will certainly work. But it will create a bunch of
  568.   subdirectories into your DOS root directory (C:) and you won't like
  569.   it. This is the reason all Umsdos installation use the pseudo-root.
  570.   And this is the major difference between a normal Ext2 installation
  571.   and a Umsdos one: All files are copied into /mnt/linux.
  572.  
  573.  
  574.   6.2.  Preparing /mnt/linux
  575.  
  576.   /mnt/linux is not an ordinary directory. It has to be promoted so it
  577.   will correctly handle Linux long file name and special files (links,
  578.   device). The step required to setup /mnt/linux are:
  579.  
  580.  
  581.   1. mkdir /mnt/linux
  582.  
  583.   2. umssync /mnt/linux
  584.  
  585.   That's it!
  586.  
  587.  
  588.   6.3.  Making sure /mnt/linux is correctly setup
  589.  
  590.   Even if the setup of /mnt/linux is pretty simple, there are many
  591.   installation package out there who get it wrong. How can ?
  592.  
  593.   The biggest installation problem come from an incompatible umssync
  594.   program. Umsdos has been update in linux 1.1.88 (Can't remember
  595.   exactly) and a flaw was uncovered in umssync. To avoid confusion in
  596.   the Linux community, it was decided to raise the compatibility level
  597.   required for all Umsdos tools. Old version of the tools were simply
  598.   rejected.
  599.  
  600.   It sounds like many distribution did not update their umssync utility
  601.   on the installation disk.
  602.  
  603.   There are still many distribution like this out there. The net result
  604.   is that the directory /mnt/linux is not promoted at all and will
  605.   truncate all long file name and will reject all special file.
  606.  
  607.   It is possible to do a test very early during the installation to find
  608.   out if something went wrong. Thanks to the pseudo console mechanism of
  609.   Linux, you can do that without leaving the installation program. Do
  610.   the following steps:
  611.  
  612.  
  613.   1. Press Alt-F2 (Alt key at the same time as the F2 key).
  614.  
  615.   2. login as root.
  616.  
  617.   3. cd /mnt/linux
  618.  
  619.      If this fail, you are trying this too early. A good time to do this
  620.      is at the end of the packages selection.
  621.  
  622.   4. >TOTO
  623.  
  624.   5. ls -l
  625.  
  626.      You should see an empty file TOTO in uppercase. If you see it in
  627.      lowercase, something went wrong. Try to do the umssync step again.
  628.      umssync can be use over and over without problem.
  629.  
  630.      umssync .
  631.  
  632.      If there is no error message, try the TOTO test again.  If TOTO
  633.      appears fine, then all is OK. Something is strange in this
  634.      installation, but you just save it. Continue
  635.  
  636.  
  637.   6. Press Alt-F1 to get back to the installation screen.
  638.  
  639.   If the test fail, the best fix is to get a newer installation root
  640.   disk. You can generally fix this root disk by installing a newer
  641.   version of umssync. This is not difficult but required a working Linux
  642.   system. You simply have to mount the root disk floppy and replace the
  643.   offending umssync with a new one.
  644.  
  645.  
  646.   6.4.  Oops releasing pseudo root ...
  647.  
  648.   Most Umsdos installation which fail, do this by printing this strange
  649.   message. This is not a bug in Umsdos although the message looks
  650.   strange. Here are the known cause.
  651.  
  652.  
  653.   o  /mnt/linux was improperly setup-ed. Generally caused by an improper
  654.      umssync utility on the installation root disk.
  655.  
  656.   o  There was a bug in Umsdos prior to Linux 1.2.2. The pseudo-root
  657.      mode would not activate properly if the file /etc/init was missing.
  658.      init is now located in /sbin. You can fix it by getting a newer
  659.      kernel.  This is recommended because another bug was uncover and
  660.      fixed in 1.2.2.
  661.      If you can't upgrade, do this
  662.  
  663.  
  664.      1. Boot from you installation disk.
  665.  
  666.      2. Login as root.
  667.  
  668.      3. mount -t umsdos /dev/hdXX /mnt
  669.  
  670.         where /dev/hdXX is your DOS partition.
  671.  
  672.      4. cd /mnt/linux/etc
  673.  
  674.      5. ln -s ../sbin/init init
  675.  
  676.      6. cd /
  677.  
  678.      7. Ctrl-Alt-Del
  679.  
  680.      8. Boot your Umsdos normally.
  681.  
  682.  
  683.  
  684.  
  685.   6.5.  How to UN-install a Umsdos system
  686.  
  687.   One neat thing about Umsdos and its pseudo-root mechanism, is that you
  688.   can UN-install it without pain. You just boot DOS and recursively
  689.   delete the linux directory. That's all. Umsdos requires no special
  690.   drivers in the config.sys, nor it creates anything special outside of
  691.   the linux directory.
  692.  
  693.  
  694.   6.6.  Moving a Umsdos system to another DOS drive
  695.  
  696.   This can be done from Linux or from DOS.  You just have to copy
  697.   recursively the linux directory from one drive to the other. After
  698.   that you will have to adjust you boot mechanism (generally loadlin
  699.   command) and the /etc/fstab file.
  700.  
  701.   Umsdos can live on any DOS drive. There is no need to install it on
  702.   the C: drive, nor it is important to have it on the first hard drive.
  703.   It does not matter at all.
  704.  
  705.   In fact, one may decide to have several Umsdos installations on
  706.   different drive just to do experiments.
  707.  
  708.  
  709.   6.7.  About installing 50 Umsdos systems.
  710.  
  711.   How about installing a bunch of Linux systems in no time ?
  712.  
  713.   Umsdos systems are living in a DOS world. You can take advantage of
  714.   this if you wish to install Linux easily.
  715.  
  716.   You can install and configure a Umsdos system at your site.  When you
  717.   are satisfied with the configuration and the different packages you
  718.   have selected, you can boot DOS and copy the complete linux directory
  719.   to your DOS file server. Then you go to other DOS station and simply
  720.   copy the files on the network drive to the local drive.  That's it.
  721.   Only adjust the boot script (Loadlinx) and go.
  722.  
  723.   With minimal adjustment (Host name, IP number), anyone will be able to
  724.   install a Linux system in a matter of minute.
  725.  
  726.  
  727.   Interest readers may note that installing Linux systems by copying
  728.   running system also works for any other Linux systems, including Ext2
  729.   based one.
  730.  
  731.   One beauty of Linux is that there is no hidden files which have to be
  732.   install by magic installation program.
  733.  
  734.  
  735.   7.  Setting a Linux section in a DOS partition
  736.  
  737.   Umsdos has some use even for Ext2 (Native Linux file-system) users.
  738.   One common scenario is this:
  739.  
  740.  
  741.   o  Linux being your OS of choice, the Linux partition start to fill
  742.      and fill and fill.
  743.  
  744.   o  Your DOS partition is collecting dust, being half empty.
  745.  
  746.   o  You are suddenly out of space in the Ext2 partition.
  747.  
  748.   o  You are still not sure you want to get rid of DOS.
  749.  
  750.   Umsdos may save the day here. You can setup a Linux directory in the
  751.   DOS partition and use it without restriction for Linux usage. For
  752.   example, say you want to setup a new directory named "extra" in your
  753.   C: drive. And you want this directory to behave as a normal Linux
  754.   directory. Do this (assuming that C: is /dev/hda1).
  755.  
  756.  
  757.  
  758.                mkdir /c
  759.                /sbin/mount -t umsdos /dev/hda1 /c
  760.                mkdir /c/extra
  761.                umssync /c/extra
  762.  
  763.  
  764.  
  765.  
  766.  
  767.   You must be root to do this.
  768.  
  769.   By setting up /etc/fstab like this, you will always have access to the
  770.   /c/extra directory.
  771.  
  772.  
  773.  
  774.   8.  UMSDOS-WHY-TO
  775.  
  776.   Explaining how to operate or install a Umsdos system is not enough.
  777.   Most people are seeking some advises about using Umsdos or not.
  778.  
  779.  
  780.  
  781.   8.1.  The goal of Umsdos
  782.  
  783.   The goal of Umsdos was to ease the installation of Linux. An other
  784.   goal was to ease its UN-installation.  The idea here was to promote
  785.   the spreading of Linux.  Installing a new OS on a system is always
  786.   troublesome. OS/2 for one will happily pollute your C: root with a
  787.   bunch of new directories. If you are clever like me, it will also
  788.   erase your config.sys and autoexec.bat files :-(
  789.  
  790.   The pseudo-root feature of Umsdos avoid this unwanted invasion. Linux
  791.   can be UN-install without side effect.
  792.  
  793.   8.2.  Who needs it
  794.  
  795.   If you have a small hard drive, Umsdos will allow you to share disk
  796.   space between DOS and Linux. A disk below 300 megs is in my opinion a
  797.   small disk. This opinion is based on the size of the different package
  798.   available today.  One popular word processor may eat as much as 70
  799.   megabytes if you select all features.
  800.  
  801.   If you have a larger drive, you may consider having a dedicated Linux
  802.   partition running the Ext2 file-system. Ext2 use a smaller cluster
  803.   size that DOS (1k in fact) so installing many small files will eat
  804.   less space than in a Umsdos partition.
  805.  
  806.  
  807.   8.3.  Performance issue
  808.  
  809.   The following point apply to Umsdos compared with Ext2.
  810.  
  811.  
  812.   o  Directory management is faster on Ext2. This come from the overhead
  813.      of the double directory structure of Umsdos.
  814.  
  815.   o  File access (reading and writing) is probably faster on Umsdos than
  816.      Ext2. This come from the simplicity of the FAT file-system used by
  817.      DOS.
  818.  
  819.      Beware that this simplicity come with a cost:
  820.  
  821.  
  822.   o  A maximum of around 65,000 files or clusters per partitions. This
  823.      also means that a 500 megabytes partition will use cluster 16k
  824.      large.  In other word, a file containing a single byte will use 16k
  825.      of disk storage.
  826.  
  827.   o  Everything is controlled by the FAT located at the beginning of the
  828.      hard drive. The DOS file-system is probably more fragile because of
  829.      this.
  830.  
  831.   o  No provision to avoid fragmentation of files. A Umsdos system will
  832.      generally be used as a single user workstation. In this case, this
  833.      does not matter much. As a multi-user engine, files will get
  834.      spread-ed all around the drive, lowering file access performance.
  835.  
  836.   o  Symbolic links are stored in normal file. If you intend to have a
  837.      lot of them, you will find that Umsdos use quite a lot of disk
  838.      space compared to Ext2.
  839.